<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./css/xadmin.css">
    <script src="./lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body ">
                    <form class="layui-form layui-col-space5" action="./FindStudentByname" method="post">
                        <div class="layui-input-inline layui-show-xs-block">
                            <input type="text" name="name" placeholder="请输入姓名" autocomplete="off" class="layui-input">
                        </div>
                        <div class="layui-input-inline layui-show-xs-block">
                            <button class="layui-btn">
                                <i class="layui-icon">&#xe615;</i>
                            </button>
                        </div>
                    </form>
                </div>

                <div class="layui-card-body ">
                    <table class="layui-table layui-form" action="/demo2_war_exploded/selectgradeListSevlert" method="post">
                        <thead>
                        <tr>
                            <th>编号</th>
                            <th>姓名</th>
                            <th>班级</th>
                            <th>专业</th>
                            <th>已修学分</th>
                            <th>毕业所需学分</th>
                            <th>绩点</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach var="item" items="${list}" >
                            <tr>
                                <td><c:out value="${item.id}"/></td>
                                <td><c:out value="${item.name}"/></td>
                                <td><c:out value="${item.classs}"/></td>
                                <td><c:out value="${item.major}"/></td>
                                <td><c:out value="${item.creat}"/></td>
                                <td><c:out value="${item.allCreat}"/></td>
                                <td><c:out value="${item.grade}"/></td>
                                <td class="td-manage">
                                    <a title="成绩查看" href="FindStudentChengji?id=<c:out value="${item.id}" />">成绩查看</a>
                                    <a title="编辑" href="FindStudentById?id=<c:out value="${item.id}" />">编辑</a>
                                    <a title="删除" href="DelStudent?id=<c:out value="${item.id}" />">删除</a>
                                </td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script>
    layui.use(['laydate', 'form'], function () {
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });
</script>
</html>